<template>
    <div>
        <ul>
            <li v-for="(item,i) in sale" :key="i">{{item.name}}---{{item.price}}</li>
        </ul>
        {{prodcuts}}
    </div>
</template>
<script>
import {mapGetters,mapState} from 'vuex'
export default {
    computed:{
        // ...mapGetters([
        //     'saleProduct'
        // ]),
        ...mapGetters({
            sale:'saleProduct'
        }),
        ...mapState([
            'prodcuts'
        ])
    }
}
</script>
